package com.punai.customer.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.punai.common.annotation.Excel;
import com.punai.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 机械费用项对象 cus_mechanical_item
 *
 * @author ruoyi
 * @date 2022-12-04
 */
public class CusMechanicalItem extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private String id;

    /**
     * 公司id
     */
    private Long companyId;

    private String code;

    private String linkCategories;

    /**
     * 章节id
     */
    @Excel(name = "章节id")
    private String chapterId;

    /**
     * 费用项名称
     */
    @Excel(name = "费用项名称")
    private String itemName;

    /**
     * 费用项单位
     */
    @Excel(name = "费用项单位")
    private String unit;

    /**
     * 规格型号
     */
    @Excel(name = "规格型号")
    private String spec;

    /**
     * 功耗系数
     */
    @Excel(name = "功耗系数")
    private BigDecimal dissipation;

    /**
     * 部门id
     */
    @Excel(name = "部门id")
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;

    /**
     * 用户id
     */
    @Excel(name = "用户id")
    @TableField(fill = FieldFill.INSERT)
    private Long userId;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer orderNum;

    @TableField(exist = false)
    private String linkFeatures;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setChapterId(String chapterId) {
        this.chapterId = chapterId;
    }

    public String getChapterId() {
        return chapterId;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getItemName() {
        return itemName;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnit() {
        return unit;
    }

    public void setSpec(String spec) {
        this.spec = spec;
    }

    public String getSpec() {
        return spec;
    }

    public void setDissipation(BigDecimal dissipation) {
        this.dissipation = dissipation;
    }

    public BigDecimal getDissipation() {
        return dissipation;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public String getLinkCategories() {
        return linkCategories;
    }

    public void setLinkCategories(String linkCategories) {
        this.linkCategories = linkCategories;
    }

    public String getLinkFeatures() {
        return linkFeatures;
    }

    public void setLinkFeatures(String linkFeatures) {
        this.linkFeatures = linkFeatures;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("companyId", getCompanyId())
                .append("chapterId", getChapterId())
                .append("itemName", getItemName())
                .append("unit", getUnit())
                .append("spec", getSpec())
                .append("dissipation", getDissipation())
                .append("deptId", getDeptId())
                .append("userId", getUserId())
                .append("orderNum", getOrderNum())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .toString();
    }
}
